package main;

import com.bemes.ecmn.model.ECMNGenericObject;
import com.bemes.utils.ECMNXmlParse;
import com.bemes.utils.FileReaderWrapper;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		FileReaderWrapper xmlReader = new FileReaderWrapper("/root/Desktop/xml/XMLFile1.xml");
		System.out.println(xmlReader.xmlFileToStr());
		ECMNXmlParse parse = new ECMNXmlParse();
		ECMNGenericObject eq = parse.parse(xmlReader.xmlFileToStr());
		
		System.out.println("\nResult:");
		System.out.println(eq.getAmountOfEquipment());
	}
}
